<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateReclist0sTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('reclist0s', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->nullable()->comment('推荐数据名称');
            $table->string('title')->nullable()->comment('显示名');
            $table->string('subtitle')->nullable()->comment('副标题');
            $table->integer('column_type_id')->default(0)->nullable()->unsigned()->comment('推荐类型ID');
            $table->integer('type_id')->default(0)->nullable()->unsigned()->comment('指定类型IDID');
            $table->integer('range')->default(0)->unsigned()->comment('range');
            $table->integer('tpl_id')->default(0)->nullable()->unsigned()->comment('模板ID');
            $table->string('bulk')->nullable()->comment('批次');
            $table->integer('count')->default(0)->nullable()->unsigned()->comment('数据量');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('reclist0s');
    }
}
